#ifndef MOTOR_01_REGISTER
#define MOTOR_01_REGISTER

/*brief
please use the pin name:BD_motorx_pwm1(or 2)
because one motor has only two pins
such as 
BD_motorx_pwm1     BD motor  1 pwm
BD_motorx_pwm2     BD motor  2 pwm
By wyu 310312
*/
#include "main.h"
#ifdef __cplusplus
 extern "C" {
#endif
/* USER CODE BEGIN Includes */

/* USER CODE END Includes */

/* USER CODE BEGIN ET */
#pragma pack(1)
	 typedef struct
	 {
		uint16_t run;
		uint16_t current_position;
		uint16_t target;
		uint16_t pp;
		int32_t encoder_value;
		uint16_t Kp;
		uint16_t Ki;
		uint16_t Kd;		 
		 
	 }__REGISTERS;
	 
	 typedef union
	 {
		uint8_t buf[50];
		__REGISTERS REG;
	 }__MOTOR_01_REGISTER;
	 
#pragma pack()

/* USER CODE END ET */

/* USER CODE BEGIN EC */

/* USER CODE END EC */

/* USER CODE BEGIN EM */

/* USER CODE END EM */



/* USER CODE BEGIN EFP */
	 
/* USER CODE END EFP */


/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

/* USER CODE BEGIN extern variable*/
extern __MOTOR_01_REGISTER MOTOR_01_REGISTER1;

/* USER CODE END extern variable */

	 
	 
#ifdef __cplusplus
}
#endif

#endif /* MOTOR_01_REGISTER */
